package com.example.win.android_banduyujia.venuesactivity.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.example.win.android_banduyujia.R;
import com.example.win.android_banduyujia.peopleactivity.activity.activity.openactivity.AsanapicActivity;
import com.example.win.android_banduyujia.peopleactivity.ui.activity.BaseTitleBarActivity;

/**
 * Created by Win on 2015/8/14.
 */
public class VenuesMateralActivity extends BaseTitleBarActivity implements View.OnClickListener {
    public static final String  TAG = VenuesMateralActivity.class.getSimpleName();

    private TextView   mTxtInfo;
    private TextView   mTxtUpicture;
    //private TextView   mTxtHonnory;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.layout_venues_info_page);

        InitTitles();
        InitViews();
    }

    private void InitTitles() {
        setTitle(R.string.title_text_view_materal);
        showLeftBackButton();
    }

    private void InitViews() {
        mTxtInfo = (TextView)findViewById(R.id.title_list_item_venues_base);
        mTxtUpicture = (TextView)findViewById(R.id.title_list_item_venues_photo);
        //mTxtHonnory = (TextView)findViewById(R.id.submit_title_list_venues_letter_credit);

        mTxtInfo.setOnClickListener(this);
        mTxtUpicture.setOnClickListener(this);
        // mTxtHonnory.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.title_list_item_venues_base:
                 gotoBaseActivity();
                break;
            /*case R.id.submit_title_list_venues_letter_credit:
                 gotoHonnoryActivity();
                break;*/
            case R.id.title_list_item_venues_photo:
                gotoUpictureActivity();
                break;
        }
    }

    private void gotoBaseActivity() {
        startActivity(new Intent(this, VenuesDataActivity.class));
    }

    /*private void gotoHonnoryActivity() {
        startActivity(new Intent(this, HonorActivity.class));
    }*/

    private void gotoUpictureActivity() {
        startActivity(new Intent(this, AsanapicActivity.class));
    }
}
